package frobagroup.services.frontEnd;

import frobagroup.entities.backstage.Product;
import frobagroup.entities.common.Credential;
import frobagroup.entities.frontEnd.UserProfile;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by Tinsley on 2018/5/10.
 */
public interface SettingsService {

    UserProfile findProfileById(String uId);
    UserProfile updateProfile(UserProfile userProfile,String uId);
    UserProfile changePortrait(MultipartFile myPhoto,String uId)throws Exception;
    Boolean updateUserPassword(Credential credential,String uId);
    List<Product> findFollowProducts(String uId);
}
